package spring.impl;

import spring.inters.HelloApi;

public class HelloImpl3 implements HelloApi {
    private String message;
    private int index;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public HelloImpl3() {

    }

    public HelloImpl3(String message, int index) {
        this.message = message;
        this.index = index;
    }

    @Override
    public void sayHello() {
        System.out.println("hello spring di" + "--" + message + "-" + index);
    }

}
